package com.gz.seckill.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gz.seckill.pojo.Goods;
import com.gz.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsDao extends BaseMapper<Goods> {

    //获取商品列表
    List<GoodsVo> findGoodsVo();

    //获取指定商品详情-根据id
    GoodsVo findGoodsVoByGoodsId(@Param("goodsId") Long goodsId);

}
